import request from '@/utils/request'

const drawsSettingApi = {

    /**
     * Mj配置详情
     */
    mj_detail(): Promise<any> {
        return request.get({
            url: '/apply/draws/setting/mj_detail'
        })
    },

    /**
     * Mj配置保存
     */
    mj_save(params: {
        channel: string;
        status: number;
        name: string;
        mode: any;
    }): Promise<any> {
        return request.post({
            url: '/apply/draws/setting/mj_save',
            params
        })
    },

    /**
     * SD配置详情
     */
    sd_detail(): Promise<any> {
        return request.get({
            url: '/apply/draws/setting/sd_detail'
        })
    },

    /**
     * SD配置保存
     */
    sd_save(params: {
        status: number;
        points: number;
        name: string;
    }): Promise<any> {
        return request.post({
            url: '/draws/setting/sd_save',
            params
        })
    },

    /**
     * DALLE配置详情
     */
    dalle_detail(): Promise<any> {
        return request.get({
            url: '/apply/draws/setting/dalle_detail'
        })
    },

    /**
     * DALLE配置保存
     */
    dalle_save(params: {
        status: number;
        points: number;
        name: string;
    }): Promise<any> {
        return request.post({
            url: '/apply/draws/setting/dalle_save',
            params
        })
    },

    /**
     * 豆包配置详情
     */
    doubao_detail(): Promise<any> {
        return request.get({
            url: '/apply/draws/setting/doubao_detail'
        })
    },

    /**
     * 豆包配置保存
     */
    doubao_save(params: {
        status: number;
        points: number;
        name: string;
    }): Promise<any> {
        return request.post({
            url: '/apply/draws/setting/doubao_save',
            params
        })
    }
}

export default drawsSettingApi
